package com.csx.base.design.constructor.abstractFactory;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author cuisongxu
 * @date 2022/6/29 12:13
 * @Version 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public abstract class Unit {

    protected int attack;  // 攻击力
    protected int defence; // 防御力
    protected int health;  // 生命力
    protected int x;       // 横坐标
    protected int y;       // 纵坐标

    public abstract void show();

    public abstract void attack();

}
